from sklearn.feature_selection._variance_threshold import VarianceThreshold

def var():
    """
    删除低方差的特征
    :return:

    """
    var = VarianceThreshold()
    """
    [[2 0]
    [1 4]
    [1 1]]
    000 和 333被删除了
    """
    data = var.fit_transform([[0,2,0,3],[0,1,4,3],[0,1,1,3]])
    print(data)

if __name__ == '__main__':
    var()